package cn.wh.ymcc.constants;

/**
 * itsource全局异常枚举类
 */
public enum YmccError {

    NO_EMPTY_EMP_NAME("4001", "员工名字不能为空！！"),
    NO_EMPTY_EMP_EMAIL("4002", "邮箱不能为空"),
    COMMON_PHONE_NO_EMPTY("4101","手机号不能为空"),
    COMMON_IMAGECODE_NO_EMPTY("4102","图形验证不能为空"),
    COMMON_PHONE_ILLEGAL("4103","手机号不合法"),
    COMMON_SERIOUS("4104","使劲骂！！！"),
    USER_SMS_EMPTY("4201","手机验证码不能为空"),
    USER_SMSCODE_NOT_EQUALS("4202","验证码不对"),
    USER_EXISTS("4203","已被注册")
    ;

    /**
     * 错误码
     */
    private String code;

    /**
     * 错误描述
     */
    private String message;

    YmccError(String code, String msg) {
        this.code = code;
        this.message = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}